
export const HomeRoutes = [
    {
        path: '/home',
        name: 'home',
        component: () => import('./HomeView.vue'),
        children: [
            {
                path: '/home',
                title: '系统首页',
                component: () => import('@/components/Users/index.vue')
            },
            {
                path: '/banner/bannerlist',
                title: '轮播图管理',
                component: () => import('@/components/Banner/BannerList.vue'),
                parent: { title: '轮播图列表', to: '/banner/bannerlist' }
            },
            {
                path: '/banner/bannercreate',
                title: '轮播图管理',
                component: () => import('@/components/Banner/BannerCreate.vue'),
                parent: { title: '轮播图列表', to: '/banner/bannercreate' }
            },
            {
                path: '/product/list',
                title: '商品管理',
                component: () => import('@/components/Pro/Product.vue'),
                parent: { title: '轮播图列表', to: '/product/list' }
            },
            {
                path: '/viewpage/echarts',
                title: '数据可视化',
                component: () => import('@/components/ECharts/EchartsPage.vue'),
                parent: { title: 'ECharts', to: '/viewpage/echarts' }
            },
            {
                path: '/viewpage/baidumap',
                title: '数据可视化',
                component: () => import('@/components/ECharts/BaiduMap.vue'),
                parent: { title: '百度地图', to: '/viewpage/baidumap' }
            },
            {
                path: '/viewpage/edit',
                title: '数据可视化',
                component: () => import('@/components/ECharts/EditComp.vue'),
                parent: { title: '编辑器', to: '/viewpage/edit' }
            },
        ]
    }
]

export default HomeRoutes